#ifndef SEATPARAMETERDIALOG_H
#define SEATPARAMETERDIALOG_H

#include <QDialog>
#include <QListWidgetItem>
#include <QCheckBox>
#include "newcameradialog.h"
#include "seatdetectionparameter.h"

namespace Ui {
class SeatParameterDialog;
}

class SeatParameterDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SeatParameterDialog(SeatDetectionParameter &seatdetectionparameter,
                                 QWidget *parent = nullptr);
    ~SeatParameterDialog();

private:
    SeatDetectionParameter &seatDetectionParameter;
    SeatDetectionParameter theSeatDetectionParameter;

    Ui::SeatParameterDialog *ui;

    NewCameraDialog *pNewCameraDialog;

    QCheckBox**     m_ppSelectedImage;

private:
    void ShowParamter();

    void InitSelectedImages();

private slots:
    void ItemSelectionChanged();
    void on_item_changed(QListWidgetItem *current, QListWidgetItem *previous);

    void on_pushButtonAddCamera_clicked();
    void on_pushButtonDelCamera_clicked();

    void Accept();
    void on_pushButtonAddClass_clicked();
    void on_pushButtonDelClass_clicked();
};

#endif // SEATPARAMETERDIALOG_H
